//
//  WSOrderAllViewController.m
//  FD
//
//  Created by xiaofang wang on 2018/10/31.
//  Copyright © 2018年 ZhiYuan Network. All rights reserved.
//

#import "WSOrderAllViewController.h"
//订单详情
#import "WSOrderDetailViewController.h"

@interface WSOrderAllViewController ()

@end

@implementation WSOrderAllViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
}

- (void)viewWillAppear:(BOOL)animated {
    [super viewWillAppear:animated];
    [self.tableView.mj_header beginRefreshing];
}
- (void)loadOrderDataWithStatus:(NSArray<NSNumber *> *)status {
    [super loadOrderDataWithStatus:nil];
}


//点击cell
- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath {
    
    WSOrderModel *model =   self.dataArr[indexPath.section];
    WSOrderDetailViewController *orderDetailVC =  [[WSOrderDetailViewController alloc] init];
    //订单id
    orderDetailVC.orderId = model.orderId;
    [self.navigationController pushViewController:orderDetailVC animated:YES];
}

@end
